package model

import "time"

type RolePowerModel struct {
	Id       int64
	RoleId   int64     `xorm:"notnull 'role_id' comment('角色id')"`
	PowerId  int64     `xorm:"notnull 'power_id' comment('权限id')"`
	CreateAt time.Time `xorm:"'create_at' created"`
	UpdateAt time.Time `xorm:"'update_at' updated"`
}

func (RolePowerModel) TableName() string {
	return "role_power"
}
